package classandobj.constuctor.inherit;

public class MyException extends Exception {

	private static final long serialVersionUID = 8045370994595850128L;

	public MyException(){
		
	}
	
	public MyException(String msg){
		super(msg);
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			// do sth
			MyException ex = new MyException();
			throw ex;
			// do sth
		} catch (Exception e) {
			System.out.println("Oh god, we got an exception...");
		}
	}

}
